package com.ruoyi.web.controller.lifeCycle;


import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.lifecycle.domain.LifManageList;
import com.ruoyi.lifecycle.service.ILifManageListService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(tags = "反馈评价")
@RestController
@RequestMapping("/feedback")
public class FeedBackController extends BaseController {

    @Autowired
    private ILifManageListService lifManageListService;

    @ApiOperation("添加反馈评价事件")
    @PutMapping("/update")
    @Log(title = "添加反馈评价事件", businessType = BusinessType.INSERT)
    public AjaxResult update(@RequestBody LifManageList lifManageList){

        return toAjax(lifManageListService.updateLifFilFeedBack(lifManageList));
    }

}

